SRC=wo_routine.c
CFLAGS=-std=c11 -Wall -Wpedantic -Wextra -g -O0

all: x86 x86_64

x86: $(SRC) main.c
	mkdir -p bin
	gcc $^ $(CFLAGS) -m32 -o bin/main_x86

x86_64: $(SRC) main.c
	mkdir -p bin
	gcc $^ $(CFLAGS) -o bin/main_x86_64

test: x86 x86_64
	./bin/main_x86 single
	./bin/main_x86 parallel
	./bin/main_x86_64 single
	./bin/main_x86_64 parallel

clean:
	rm main
